#include<iostream>
#include<vector>
#include<cmath>

using namespace std;

double my_pow(double x, long long n)
{
    if (n == 0)return 1;

    double number = my_pow(x, n / 2);
    return n % 2 == 1 ? number * number * x : number * number;

}
double myPow(double x, int n) {
    if (x == 0)return 0;
    long long m = n;
    double number = my_pow(x, abs(m));
    return n > 0 ? number : 1 / number;
}


int main()
{
    cout << myPow(2, 10) << endl;
	return 0;
}